package com.springboot.template.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.springboot.template.entity.User;
import com.springboot.template.service.IUserService;

@RestController
@RequestMapping("/user")
public class UserController {

	@Autowired
	private IUserService userService;
	
	@RequestMapping("/baseMapper")
	public List<User> baseMapper(){
		return userService.findAllUserFromBaseMapper();
	}
	@RequestMapping("/customMapper")
	public List<User> customMapper(){
		return userService.findAllUserFromCustomerMapper();
	}
}
